#!/bin/bash

echo
test -z ${name} && echo "name isnull"
name=cosmos
#因为name变量的值不为空，所以条件表达式的值为假，所以，后面的echo语句将不会执行
test -z ${name} && echo "name isnull"
test -n ${name} && echo "name is notnull"
